package com.snow.conditions;

import lombok.Getter;

@Getter
public class QueryOrder {

    final String column;

    final QueryOrderType type;

    public QueryOrder(String column, QueryOrderType type) {
        this.column = column;
        this.type = type;
    }

    public static QueryOrder asc(String column){
        return new QueryOrder(column, QueryOrderType.asc);
    }

    public static QueryOrder desc(String column){
        return new QueryOrder(column, QueryOrderType.desc);

    }
}
